var root=ui("$");
var nf = sm("do_Notification");
var do_Page = sm("do_Page");
var qqHttp = require("helper/http");
var openHelper = require("helper/open");
var common = require("common");
var do_ALayout_2 = ui("do_ALayout_2");
var mallUrl = require("url/mall");
var qqmath = require("util/qqmath");
var price = ui("price");
//设置数据绑定的映射关系
root.setMapping({
	"img.source":"firstImg",
	"name.text":"name",
	"price.text":"price",
	"price.tag":"unit",
	"do_ALayout_2.tag" :"id",
	"name.tag" : "status"
});

root.on("dataRefreshed", function(){
	price.text = qqmath.getDight(price.text,2) + "元/" + price.tag;
});

do_ALayout_2.on("touch", function(data) {
	openHelper.open("source://view/mall/product/main.ui",{"id":do_ALayout_2.tag,"fromPage":"qshop"});
});